package com.enmonster.executor;

import com.enmonster.jdbc.JdbcUtils;
import com.enmonster.resolve.original.ModelOriginal;
import com.enmonster.resolve.original.ResultOriginal;

import java.lang.reflect.Method;

/**
 * @Author wuxi
 * @create 2019/4/11 下午2:24
 *
 * update 执行器
 */
public class InsertExecutor implements BaseExecutor{

    @Override
    public Object executor(ModelOriginal modelOriginal, Method method , ResultOriginal resultOriginal) {
        return JdbcUtils.insert(modelOriginal.getSql(), true,modelOriginal.getParamxEcuteList());

    }
}
